﻿<%@ Page Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true"
    CodeBehind="CacTinSaiPham.aspx.cs" Inherits="TuyenDungViecLam.Admin.CacTinSaiPham"
    Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder4" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div class="art-Block">
                <div class="art-Block-tl">
                </div>
                <div class="art-Block-tr">
                </div>
                <div class="art-Block-bl">
                </div>
                <div class="art-Block-br">
                </div>
                <div class="art-Block-tc">
                </div>
                <div class="art-Block-bc">
                </div>
                <div class="art-Block-cl">
                </div>
                <div class="art-Block-cr">
                </div>
                <div class="art-Block-cc">
                </div>
                <div class="art-Block-body">
                    <div class="art-BlockHeader">
                        <div class="art-header-tag-icon">
                            <div class="t">
                                Các công việc sai phạm</div>
                        </div>
                    </div>
                    <div class="art-BlockContent" style="padding-left: 0px; padding-right: 0px">
                        <asp:GridView ID="dscongviec" runat="server" AutoGenerateColumns="False" Width="100%"
                            CellPadding="0" ForeColor="#333333" GridLines="None" AllowPaging="True" OnPageIndexChanging="dscongviec_PageIndexChanging"
                            OnRowCommand="dscongviec_RowCommand">
                            <RowStyle CssClass="RowsGridMain" BackColor="white" ForeColor="#333333" />
                            <Columns>
                                <asp:TemplateField HeaderText="Chức danh" SortExpression="ChucNang">
                                    <ItemTemplate>
                                        <a href='<%# "ChitTietTinSaiPham.aspx?Mcv=" + Eval("MaCongViec") + "&Mct=" + Eval("MaNhaTuyenDung") %> '
                                            onmousemove="BBTOnline_ShowTooltip('../VN/TootTip.aspx?Mcv=<%# Eval("MaCongViec") %>')"
                                            onmouseout="BBTOnline_HideTooltip()">
                                            <%# Eval("ChucDanh")%></a>
                                        <asp:Label ID="lbmacongviec" runat="server" Text='<%# Eval("MaCongViec") %>' Visible="false"></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle VerticalAlign="Top" />
                                </asp:TemplateField>
                                <asp:BoundField HeaderText="Tên công ty" DataField="Ten">
                                    <ItemStyle VerticalAlign="Top" />
                                </asp:BoundField>
                                <asp:BoundField HeaderText="Ngày đăng" DataField="NgayDang" DataFormatString="{0:dd/MM/yyyy}"
                                    SortExpression="NgayDang">
                                    <ItemStyle Width="120px" HorizontalAlign="Center" />
                                    <ItemStyle VerticalAlign="Top" />
                                </asp:BoundField>
                                <asp:BoundField DataField="NgayHetHan" HeaderText="Ngày hết hạn đăng" DataFormatString="{0:dd/MM/yyyy}">
                                    <ItemStyle HorizontalAlign="Center" Width="120px" />
                                </asp:BoundField>
                                <asp:TemplateField>
                                    <HeaderTemplate>
                                        <asp:ImageButton ID="ImageButton1" CommandName="chon" ImageUrl="~/images/Check-icon.png"
                                            OnClientClick="if(!confirm('Chọn tất cả ?')) return false;" runat="server" />
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="cbchon" runat="server" />
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" />
                                    <ItemStyle Width="50px" />
                                </asp:TemplateField>
                            </Columns>
                            <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" CssClass="PagingGrid" />
                            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                            <HeaderStyle CssClass="HeaderGrid" />
                            <AlternatingRowStyle CssClass="RowsGrid" />
                        </asp:GridView>
                    </div>
                </div>
            </div>
            <div style="float: right; margin-right: 50px; padding-bottom: 10px; padding-top: 10px">
                <asp:Button ID="Button1" runat="server" Text="Cho đăng" CssClass="button" Style="display: inline"
                    OnClientClick="if(!confirm('Bạn có muốn cho các công việc này được đăng tiếp không ?')) return false;"
                    OnClick="Button1_Click" />
                <asp:Button ID="Button3" runat="server" Text="Không cho đăng" CssClass="button" Style="display: inline"
                    OnClientClick="if(!confirm('Bạn có muốn xóa các công việc này không ?')) return false;"
                    OnClick="Button3_Click" /></div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <br />
</asp:Content>
